<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>Insert title here</title>
		<link rel="stylesheet" type="text/css" href="../../css/bootstrap/bootstrap.min.css" />
		<link rel="stylesheet" type="text/css" href="../../css/easyui/default/easyui.css"/>
		<script type="text/javascript" src="../../js/jquery.min.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/bootstrap.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../../js/easyui/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../../js/self/util.js"></script>
		<script type="text/javascript" src="../../js/self/ssm.operate.js"></script>
		<script type="text/javascript" src="../../js/bootstrap/laydate.js"></script>
	</head>
	<body>
		<form id="form_operateEntity" th:action="@{/employee/operate}" method="post" get_url="/employee/get">
			<input type="hidden" name="id" th:value="${id}">
			<table class="table table-bordered" style="width: 50%;" id="table_operateEntity">
				<tr>
					<td width="20%">登录账户</td>
					<td width="50%">
						<input id="valid_text_account" name="account" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validAccount">登录账户不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">姓名</td>
					<td width="50%">
						<input id="valid_text_name" name="name" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validName">姓名不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">性别</td>
					<td width="50%">
						<select id="valid_select_sex" class="form-control" name="sex">
							<option value="">---请选择---</option>
							<option value="男" th:selected="${employee.sex == '男'}">男</option>
							<option value="女" th:selected="${employee.sex == '女'}">女</option>
						</select>
					</td>
					<td><span id="span_validSex">性别不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">登录密码</td>
					<td width="50%">
						<input id="valid_text_password" name="password" class="form-control" autocomplete="off"/>
					</td>
					<td><span id="span_validPassword">登录密码不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">组织机构</td>
					<td width="50%">
						<select id="valid_select_orgId" class="form-control" name="orgId">
							<option value="">---无---</option>
							<option th:each="organization: ${organizationList}" th:value="${organization.id}" th:text="${organization.orgName}"
									th:selected="${organization.id == employee.orgId}"></option>
						</select>
					</td>
					<td><span id="span_validOrgId">组织机构不能为空</span></td>
				</tr>
				<tr>
					<td width="20%">角色名称</td>
					<td width="50%">
						<select  id="valid_select_role" class="form-control" name="role">
							<option value="">---请选择---</option>
							<option value="admin" th:selected="${employee.role == 'admin'}">平台管理员</option>
							<option value="assetManager" th:selected="${employee.role == 'assetManager'}">资产管理员</option>
							<option value="tester" th:selected="${employee.role == 'tester'}">渗透测试员</option>
						</select>
					</td>
					<td><span id="span_validRole">角色名称不能为空</span></td>
				</tr>
				<tr>
					<td colspan="3">
						<button type="button" class="btn btn-success" id="button_sureOperate">确定</button>
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>
